package com.AJava1710D.bingfabao.condiation2.noCondiation;

/**
 * @author: LCG
 * 作者: LCG
 * 日期: 2020/10/7  10:56
 * 描述:
 */
public class TeRunable2 implements Runnable {
    private String yyy;

    public TeRunable2(String yyy) {
        this.yyy = yyy;
    }

    @Override
    public void run() {
        try {

            Thread.sleep(5000);

            System.out.println("================000002");
            synchronized (yyy){
                yyy.notify();
            }
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
